import { useRef } from "react";

function App() {
  const inputRef = useRef(null);
  const showInputRef = () => {
    console.dir(inputRef.current);
  };
  return (
    <div className="App">
      <input type="text" ref={inputRef} />
      <button onClick={showInputRef}>Click me!</button>
    </div>
  );
}

export default App;
